package cn.tutu.blockchain.machinebackups.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cn.tutu.blockchain.base.BaseDao;
import cn.tutu.blockchain.machinebackups.entity.MachineBackups;

@Mapper
public interface MachineBackupsDao extends BaseDao<MachineBackups> {

	List<MachineBackups> findBackupsByIsBackups();

	List<MachineBackups> findFileHashByMacId(String machineId);

	void updateBatch(List<MachineBackups> macList);

	MachineBackups findRootHashByMacId(String machineId);

	void updateRootHash(MachineBackups machineBackups);

	MachineBackups findByStatusId(String id);

}
